<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title> 代理管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="/201706/zltc/Public/layui/css/layui.css"  media="all">
  <style type="text/css">
  .tongji-box{
    text-align: center;
    background: #63BA79;
    padding:20px;
    color: #fff;
  }
  .tongji-title{
    font-size: 26px;
  }
  .tongji-num{
    font-size: 24px;
  }
  #chart-box{
    margin-top: 30px;
    height: 500px;
  }
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">  </div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- <li class="layui-nav-item"><a href="">小程序管理</a></li> -->
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <?php echo (session('username')); ?>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo U('Public/logout');?>">退出登录</a></dd>
          <!-- <dd><a href="">安全设置</a></dd> -->
        </dl>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item"><a href="<?php echo U('Index/index');?>">首页</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('User/index');?>">代理管理</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Wechat/index');?>">小程序管理</a></li>
        <li class="layui-nav-item layui-this"><a href="<?php echo U('Index/edit');?>">修改账号</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Public/logout');?>">退出登录</a></li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
      <fieldset class="layui-elem-field layui-field-title">
        <legend>修改账号</legend>
      </fieldset>
      <form class="layui-form" action="">
        <div class="layui-form-item">
          <label class="layui-form-label">用户名</label>
          <div class="layui-input-block">
            <input type="text" name="username" class="layui-input" placeholder="请设置用户名" value="<?php echo ($vo["username"]); ?>">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">密码</label>
          <div class="layui-input-block">
            <input type="password" name="password" class="layui-input" placeholder="******">
          </div>
        </div>
        
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
          </div>
        </div>
      </form>
    </div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © 2017-2018 <a href="http://www.58zltc.com" target="_blank">  </a> All Rights Reserved.
  </div>
</div>
<script src="/201706/zltc/Public/layui/layui.js" charset="utf-8"></script>
<script>
//JavaScript代码区域
layui.use(['element','form','upload','laydate'], function(){
  var element = layui.element
  ,form = layui.form
  ,layer = layui.layer
  ,$ = layui.jquery
  ,laydate = layui.laydate;
  
  //常规用法
  laydate.render({
    elem: '#test1'
  });
  
  //监听提交
  form.on('submit(*)', function(data){
    $.post('#', data.field, function(e) {
      layer.alert(e.info,function(index){
        parent.location.reload();
      });
    });
    return false;
  });
  
  
});
</script>
</body>
</html>